# -*- coding: utf-8 -*-
"""
Version: 0.1
Author: CarpeDiem
Date: 2022/3/12
Description: 打印 田字格
"""
n = 4
m = n // 2
for i in range(n + 1):
    if i == 0 or i == n or i == m:
        print('+' + '—' * m + '+' + '—' * m + '+')
    else:
        print('|' + ' ' * m + '|' + ' ' * m + '|')
